package com.type.vo;

/**
 * 알림리스트 VO
 * @author hyem55
 * @since 2013.05.20
 */
public class AlarmVO {
	private String alarmSubject;
	private String alarmContent;
	private String reachTime;
	
	public AlarmVO() {super();}
	

	public AlarmVO(String alarmSubject, String alarmContent, String reachTime) {
		super();
		this.alarmSubject = alarmSubject;
		this.alarmContent = alarmContent;
		this.reachTime = reachTime;
	}


	public String getAlarmSubject() {
		return alarmSubject;
	}

	public void setAlarmSubject(String alarmSubject) {
		this.alarmSubject = alarmSubject;
	}

	public String getAlarmContent() {
		return alarmContent;
	}

	public void setAlarmContent(String alarmContent) {
		this.alarmContent = alarmContent;
	}

	public String getReachTime() {
		return reachTime;
	}

	public void setReachTime(String reachTime) {
		this.reachTime = reachTime;
	}

	@Override
	public String toString() {
		return "AlarmVO [alarmSubject=" + alarmSubject + ", alarmContent="
				+ alarmContent + ", reachTime=" + reachTime + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((alarmContent == null) ? 0 : alarmContent.hashCode());
		result = prime * result
				+ ((alarmSubject == null) ? 0 : alarmSubject.hashCode());
		result = prime * result
				+ ((reachTime == null) ? 0 : reachTime.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		AlarmVO other = (AlarmVO) obj;
		if (alarmContent == null) {
			if (other.alarmContent != null)
				return false;
		} else if (!alarmContent.equals(other.alarmContent))
			return false;
		if (alarmSubject == null) {
			if (other.alarmSubject != null)
				return false;
		} else if (!alarmSubject.equals(other.alarmSubject))
			return false;
		if (reachTime == null) {
			if (other.reachTime != null)
				return false;
		} else if (!reachTime.equals(other.reachTime))
			return false;
		return true;
	}
	
}
